package com.service.loan.feignService;

import com.client.model.pojo.user.ArUser;
import com.client.model.vo.common.Result;
import com.client.model.vo.userVo.ArUserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * user模块的feign调用接口
 *
 * @Author : RulerWood
 * @Data : 2024/4/2 - 20:52
 */
@FeignClient(path = "/airui/api/userFeign", name = "service-user")
public interface UserFeignCreditCardService {

    @PostMapping("/userInfo")
    public Result<String> theUserIsExist(@RequestBody ArUserVo arUserVo);

    @GetMapping("/{id}")
    public Result<ArUser> getUserById(@PathVariable("id") Long id);
}
